package cn.zhj.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
  private Long id;
  //对应属性名与excel列， width宽度，orderNum顺序
  @Excel(name = "姓名",width = 20,orderNum = "0")
  private String name;
  @Excel(name = "年龄",width = 20)
  private Integer age;
  @Excel(name = "性别",replace = { "男_1", "女_0" },orderNum = "1")
  private String sex;
}
